import axios from '../utils/axios.js';

export let getArticleList=()=>{
   return axios.get(`/article/list/1`)
}

export let addArticle=(article)=>{
   return axios.post('/article/add',article)
}

export let getDetail=(id)=>{
   return axios.get(`/article/getArticle/${id}`)
}

export let delArticle=(id)=>{
   return axios.get(`/article/delArticle/${id}`)
}

export let editArticle=(article)=>{
   return axios.post('/article/edit',article)
}

export let loadArticleList=(uid)=>{
   return axios.get(`/article/userArticleList/${uid}`)
}